from django.shortcuts import render
from rest_framework import viewsets
from n8 import serializers
from n8  import models
# Create your views here.

class New(viewsets.ModelViewSet):
    queryset = models.news.objects.all()
    serializer_class = serializers.newsSerializer